package com.pf.common.enums;

import lombok.Getter;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2022/6/25 17:52
 */
@Getter
public enum ResultRespEnum {

    SUCCESS(0, "调用成功！"),
    SYSTEM_ERROR(999999, "系统异常！"),
    PARAM_ERROR(100000, "参数异常！"),
    UPLOAD_ERROR(100001, "上传失败!"),
    UPLOAD_TEMPLATE_ERROR(100002, "excel模板不正确！"),
    UPLOAD_CONVERT_ERROR(100003, "excel数据转换不正确！"),
    UPLOAD_VALIDATE_ERROR(100004, "excel上传校验失败！"),
    FAIL(-1, "调用失败！");

    private Integer code;
    private String message;

    ResultRespEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
